package com.whxd.smarthome.core.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whxd.smarthome.core.entity.DhDeviceChannel;
import com.whxd.smarthome.core.repository.DhDeviceChannelDao;

@Service
public class DhDeviceShareServiceImpl implements DhDeviceChannelService {
	@Autowired
	DhDeviceChannelDao dhDeviceChannelDao;
	
	@Override
	public void saveDeviceChannel(List<DhDeviceChannel> channels) {
		dhDeviceChannelDao.save(channels);
	}

	@Override
	public List<DhDeviceChannel> getChannelsByDeviceId(String deviceId) {
		return dhDeviceChannelDao.getChannelsByDeviceId(deviceId);
	}

}
